package com.beta.restapi.request;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * Created by vector on 2016/11/21.
 */
public class ConfirmationCodeRequest implements Serializable {

    private static final long serialVersionUID = -369662947105575638L;

    @NotNull
    @Valid
    private ConfirmationCode confirmationCode;

    public ConfirmationCode getConfirmationCode() {
        return confirmationCode;
    }

    public void setConfirmationCode(ConfirmationCode confirmationCode) {
        this.confirmationCode = confirmationCode;
    }

    public class ConfirmationCode {

        @NotNull
        private String phone;

        @NotNull
        private String codeType;

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getCodeType() {
            return codeType;
        }

        public void setCodeType(String codeType) {
            this.codeType = codeType;
        }
    }

}
